Path: / {BASE} / prefix / {prefix}

Get namespace

Path parameters:
prefix ( [a-z][a-zA-Z0-9\._-]+) - prefix

Resource Methods
Method Summary
NameDescription
GET /{BASE}/prefix/{prefix}Get namespace
DELETE /{BASE}/prefix/{prefix}Removes a prefix
POST /{BASE}/prefix/{prefix}?uri=…Add new mapping

Method Detail

GET /{BASE}/prefix/{prefix}

Get namespace

HTTP Example:
GET /{BASE}/prefix/{prefix}
API Example:

PrefixWebService.getMapping({'prefix': /* prefix prefix */});

Output:
Response - Response with the mapping, if exists
Produces:
application/json

DELETE /{BASE}/prefix/{prefix}

Removes a prefix

HTTP Example:
DELETE /{BASE}/prefix/{prefix}
API Example:

PrefixWebService.deleteMapping({'prefix': /* prefix prefix */});

Output:
Response - Response with the result of the operation

POST /{BASE}/prefix/{prefix}

Add new mapping

HTTP Example:
POST /{BASE}/prefix/{prefix}?uri=…
API Example:

PrefixWebService.addMapping({'uri': /* namespace uri */,
  'prefix': /* prefix prefix */});

Output:
Response - operation result
Query parameters:
uri - uri